/** @file   control.h
    @author M. P. Hayes, UCECE
    @date   21 August 2007
    @brief  Control algorithm.
*/
#ifndef CONTROL_H
#define CONTROL_H

#include "config.h"


/** Initialise control algorithm.
    @param update_rate update rate in Hz  */
extern void control_init (uint16_t update_rate);


/** Update control algorithm.
    @param error difference between setpoint and measurement
    @return percentage heater should be on  */
extern uint8_t control_update (int8_t error);


#endif /* CONTROL_H  */
